package com.portal.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单项实体类
 */
@TableName(value ="t_item")
@Data
public class Item implements Serializable {
    private Long id;
    private Long bookId;
    private String bookName;
    private Double price;
    private Integer buyCount;
    private Double sumPrice;
    private Long orderId;
    
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Integer state;
    private static final long serialVersionUID = 1L;
}